import { http } from "@/utils/http";
import baseUrlProxy from "@/api/baseUrlProxy";

export const getTradeMltContract = (data?: object) => {
  return http.request<any>("get", baseUrlProxy + "/api/tradeMltContract", {
    params: data
  });
};
export const downTradeMltContract = (data?: object) => {
  return http.request<any>(
    "get",
    baseUrlProxy + "/api/tradeMltContract/download",
    {
      params: data
    }
  );
};
export const addTradeMltContract = (data?: object) => {
  return http.request<any>("post", baseUrlProxy + "/api/tradeMltContract", {
    data: data
  });
};
export const editTradeMltContract = (data?: object) => {
  return http.request<any>("put", baseUrlProxy + "/api/tradeMltContract", {
    data: data
  });
};
export const delTradeMltContract = (data?: object) => {
  return http.request<any>("delete", baseUrlProxy + "/api/tradeMltContract", {
    data: data
  });
};

export const getTradeMltContractDetail = (data?: object) => {
  return http.request<any>(
    "get",
    baseUrlProxy + "/api/tradeMltContractDetail",
    {
      params: data
    }
  );
};
export const addTradeMltContractDetail = (data?: object) => {
  return http.request<any>(
    "post",
    baseUrlProxy + "/api/tradeMltContractDetail",
    {
      data: data
    }
  );
};
export const editTradeMltContractDetail = (data?: object) => {
  return http.request<any>(
    "put",
    baseUrlProxy + "/api/tradeMltContractDetail",
    {
      data: data
    }
  );
};
export const delTradeMltContractDetail = (data?: object) => {
  return http.request<any>(
    "delete",
    baseUrlProxy + "/api/tradeMltContractDetail",
    {
      data: data
    }
  );
};
